'''
Created on 2009-6-18

@author: steven
'''
import stdoutFM

def output(data,format="txt"):
    output_func = getattr(stdoutFM,"output_%s"%format,stdoutFM.output_txt)
    return output_func(data)

if __name__ == "__main__":
    output("My spaces")
    output("My spaces","pdf")
    output("My spaces","xml")
    
    